with open('yinyu_uids.txt','r') as fp:
    uids = set([i for i in fp])
with open('yinyu_uids.txt','w') as fp:
    for i in uids:
        fp.write(i)